GSP-003 Provision Services with Cloud Launcher

2017 10 16일 월요일

오전 8:52

링크: https://qwiklabs.com/focuses/6477

 

Cloud Launcher

- 몇번의 클릭으로

- Compute Engine 위에

- 널리쓰이는 패키지나 스택을 설치 가능

 

할일

- 웹스택을 클라우드 런쳐로 맹글기

- 설치를 검증해보기

 

시작해보자

- 클라우드 런쳐를 사용해서 Nginx 스택을 Google Compute Engine 위에 생성해보자

 

1) GCP에서 클라우드 런처 선택

* 이렇게 많다.

시스템 생성 대체 텍스트:
Filter by 
`시rt니al machines (300) 
600이e Cloud Platform (38) 
APIs & services (242) 
Containers (25) 
Datasets (76) 
Operating systems (30) 
Developer stacks (79) 
Networking (56) 
Databases (58) 
Developer tools (140) 
8|0다 & CMS (54)

 

2) Nginx 찾아서 Launch on Compute Engine

Google Cloud Platform 
Cloud Launcher 
qwiklabs-gcp-0841 abaal • 
Q nginx 
Launcher > "nginx" 
Filter by 
TYPE 
Containers (1) 
Virtual machines (3) 
CATEGORY 
Developer tools (1) 
Networking (3) 
4 results 
NGINX Plus 
NGINX, Inc 
Load balancing, acceleration and 
high availability for web apps 
Type Virtual machines 
NGMX 
Nginx 
Google Click to Deploy 
A leading open source webserver 
Type Virtual machines 
NGMX 
Nginx 
Google Click to Deploy containers 
A leading open source webserver 
Type Containers 
NGMX 
Nginx Certified by Bitnami 
aitnami 
Infrastructure software from the 
leading publisher 
Type Virtual machines

 

3) VM Instance 설정

Deployment name 
nginxstack-l jhs 
Zone 
asia-northeastl-a 
Machine type 
micro (1 shared__ 
800t Disk 
Disk type 
Standard Persistent Disk 
Disk size in Ga 
Networking 
Network name 
detau•t 
Subnetwork name 
detau't 
Firewall 
0.6 G8 memory 
Customize 
Add tags and firewall rules to allow specific nemark traffic from the Internet 
v' Allow HTTPtratfic 
Allow HTTPS tramc

- 인스턴스 이름

- 존 이름 (가까운데로 하자)

- 나머지는 디폴트로

Machine type: f1-micro.

Boot Disk: 10 GB SSD.

"Allow HTTP Traffic" and "Allow HTTPS Traffic" are checked.

그리고  Deploy 를 누르자

 

!

 

Deployment Verify 해보자

 

nginxstack-l-jhs 
e nginxstack-l-jhs has been deployed 
Overview - nginxstack-l-jhs 
nginxstack nginxstack.jinja 
nginxstack-vm-tmpl vm_instancepy 
nginxstack-l-jhs-vm '.'m instance 
generated-password-O passworffpy 
software-status 
nginxstack-l-jhs-config config 
nginxstack-l-jhs-software config waiter 
software-status-script software_status_scriptpy 
. nginxstack-1-jhs-tcp-80 firewall 
. nginxstack-1-jhs-tcp-443 firewall 
DELETE 
X 
nginxstack 
Nginx Certified by Bitnami 
NGMX 
Solution provided by Bitnami 
Site address 
Admin user 
Admin password 
(Temporary) 
Instance 
Instance zone 
Instance machine type 
http 1/35.200110221/ C? 
user 
Ws8VtaDdLiap 
nginxstack-l-jhs-vm 
asia-northeastl-a 
tl-micro 
More about the software 
Get started with Nginx Certified by Bitnami 
Visit the site 
Suggested next steps 
Change the temporary password 
For additional security, it is recommended that you change the password. 
Assign a static external IP address to your VM instance 
An ephemeral external IP address has been assigned to the VM instance If you 
require a static external IP address, you may promote the address to static. 
Learn more 
Documentation 
Getting Started 
Get started with Bitnami Nginx Stack 
Support 
Bitnami provides technical support for installation and setup issues through our 
support center LI Go to Bitnami support

 

1) GCP 화면에서 확인

 

2) 웹에서 확인

- Visit the site 버튼 누르면 된다

 

3) SSH 에서 확인

- SSH 로 인스턴스에 접근후

- ps aux | grep nginx 으로 프로세스 돌아가는 것 확인 (Compute Engine 에서도 instance가 보이고 그쪽으로 SSH를 통해 들어가도 똑같다.

 

googIe104301 studentenginxstack—l —3hs—vm• $ 
00:12 
00:12 
00:17 
ps 
aux 
I grep 
root 
2183 0.0 0.1 45032 
1020 
4312 
2108 
ng Inx 
0:00 nginx: 
0:00 nginx: 
master process 
worker process 
sbin/ . ngx 
. bin —p / opt/bitnam±/nginx/ 
1002 
2184 0.0 0.7 45476 
2450 0.0 0.3 12728 
PCs/ I 
0:00 grep nginx

 

googIe104301 studentenginxstack—l 
00:12 
00:12 
00:17 
1020 
4312 
2108 
$ ps 
PCs/ O 
aux 
I g rep n ginx 
root 
2183 0.0 0.1 45032 
0:00 nginx: 
0:00 nginx: 
master process 
worker process 
sbin/ . ng2 
. bin —p / opt/bitnam±/nginx/ 
a emn 
1002 
2184 0.0 0.7 45476 
2447 0.0 0.3 12728 
0:00 grep nginx

 

 

 

 

 

Microsoft OneNote 2016에서 작성